package org.john.auth.client.context;

public class Context {
	private static final transient ThreadLocal<UserContext> threadLocal = new ThreadLocal<>();

	public static UserContext getUserContext() {
		return threadLocal.get();
	}

	public static void setUserContext(UserContext userContext) {
		threadLocal.set(userContext);
	}

	public static void remove() {
		threadLocal.remove();
	}

}
